package com.binance.mbxgateway.vo.request.klines;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel("获取kline: 输入 Request")
@Data
public class GetKlineRequest {
    @ApiModelProperty(required = true, value = "产品")
    @NotNull
    private String symbol;

    @ApiModelProperty(required = true, value = "时间间隔")
    @NotNull
    private String interval;

    @ApiModelProperty(required = true, value = "条目数")
    @Max(1000)
    private Long limit;

    @ApiModelProperty(required = true, value = "开始时间")
    private Long startTime;

    @ApiModelProperty(required = true, value = "结束时间")
    private Long endTime;

}
